Repository navigation
Adds goto test. - #199
Adds goto test.#199
Conversation
56eacfc to
d1a8c29
Compare
|
The test here is pretty grim. On a significantly slow platform (free tier of Appveyor) we inadvertently expose the lack of resilience of DKPY code: https://ci.appveyor.com/project/3drobotics/dronekit-python/build/1.0.116 Arming and immediately disarming the motors can get us into an infinite loop without additional safeguards. I'm concerned these sort of examples are all over the codebase. I'll be adding log dumping to the CI builds so I can see what is triggering this particular issue. |
|
yes logs should be there, great way to tell what happened, and as a plus since you are running mavproxy you can also get jpegs of plots if you wanted to say debug a failure by plotting |
Are you proposing that the vehicle_goto.py example needs to change? If so, how? I'm not a fan of timeouts - but I was hoping to do additional checks when #156 is merged. Taking off in this example can similarly can get "stuck" if for any reason the vehicle is unable to rise (it is possible to have SITL in such a state where this can happen). |
|
@hamishwillee No proposal to change the example should come from this. Just pointing out a pedantic issue exposed by the test setup that should be addressed in a general way. I don't expect to test the examples as-is before additional modifications like #156. These tests should remain for now separate (hopefully supersets) of the code we recommend. |
b16385d to
79a5a1d
Compare
|
The changes made to the SITL tests to add higher affinity on Windows and also use simulation speedups now result in success ~80% of the time on Windows. Since tests can always be re-run, and nothing will be merged into master if it is not green, I think this is as good as it will get for the moment. In a future issue/PR, I'll be investigating how to make these tests more general (local testing) and perform more consistently on Appveyor. Right now this is lower priority thank making sure we have a working testing process. |
|
Update: I'm going to make this test slightly more general. Hold off on merging. |
|
@mrpollo This is good to review again. Made more general and avoids random Appveyor failures with a tunable retry parameter. |
|
lgtm 👍 |
Copied from vehicle_goto
Issue: timeout added to delay. I think this is because of requirements waiting
Also: rebased over #197